<template>
 <div>
  <Child v-for="t in teachers" :key="t.id" :name="t.name" :age="t.age"/>
 </div>
</template>

<script>
  import Child from './components/Child.vue'
  export default {
    name:'App',
    components:{Child},
    data() {
      return {
        teachers:[
          {id:'ascftcv01',name:'静静',age:18},
          {id:'ascftcv02',name:'老罗',age:19},
          {id:'ascftcv03',name:'老张',age:20},
          {id:'ascftcv04',name:'豪哥',age:90}
        ]
      }
    },
  }
</script>